package com.huawei.appmarket.service.store.awk.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import com.huawei.appmarket.service.store.awk.card.ThreeLineAppCard;
import kotlin.Metadata;
import kotlin.TypeCastException;
import o.azb;
import o.cdr;
import o.chy;
import o.chz;
import o.ewm.h;
import o.ewm.j;
import o.fry;
import o.fsc;
import o.fsd;
import org.jetbrains.annotations.NotNull;

@Metadata(bv = {1, 0, 3}, d1 = {"\u0000L\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\b\u0016\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0018\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\nH\u0016J\u0010\u0010\f\u001a\n\u0012\u0004\u0012\u00020\u000e\u0018\u00010\rH\u0016J\b\u0010\u000f\u001a\u00020\bH\u0016J\b\u0010\u0010\u001a\u00020\bH\u0016J\u0018\u0010\u0011\u001a\u00020\b2\u0006\u0010\u0012\u001a\u00020\u00132\u0006\u0010\u000b\u001a\u00020\nH\u0016J\u0010\u0010\u0014\u001a\u00020\u00152\u0006\u0010\u0016\u001a\u00020\u0017H\u0016J\u0010\u0010\u0018\u001a\u00020\u00152\u0006\u0010\u0019\u001a\u00020\u001aH\u0002R\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u000e¢\u0006\u0002\n\u0000¨\u0006\u001b"}, d2 = {"Lcom/huawei/appmarket/service/store/awk/node/ThreeLineAppNode;", "Lcom/huawei/appgallery/foundation/card/base/node/BaseDistNode;", "context", "Landroid/content/Context;", "(Landroid/content/Context;)V", "threeLineAppCard", "Lcom/huawei/appmarket/service/store/awk/card/ThreeLineAppCard;", "createChildNode", "", "rootLayout", "Landroid/view/ViewGroup;", "parent", "getExposureDetail", "Ljava/util/ArrayList;", "", "isCalculateChild", "isCompositeComponent", "setData", "dataItem", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardChunk;", "setOnClickListener", "", "cardEventListener", "Lcom/huawei/appgallery/foundation/ui/framework/cardkit/bean/CardEventListener;", "setSubTitleLayoutPadding", "combineContainer", "Landroid/widget/LinearLayout;", "WiseDist_release"}, k = 1, mv = {1, 1, 15})
public class ThreeLineAppNode extends cdr {
    private ThreeLineAppCard ˊ;

    @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\b\n\u0000\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, d2 = {"<anonymous>", "Lcom/huawei/appmarket/service/store/awk/card/ThreeLineAppCard;", "invoke"}, k = 3, mv = {1, 1, 15})
    static final class c extends fsc implements fry<ThreeLineAppCard> {
        final /* synthetic */ ThreeLineAppNode ˎ;
        final /* synthetic */ ViewGroup ˏ;
        final /* synthetic */ LayoutParams ॱ;

        c(ThreeLineAppNode threeLineAppNode, ViewGroup viewGroup, LayoutParams layoutParams) {
            this.ˎ = threeLineAppNode;
            this.ˏ = viewGroup;
            this.ॱ = layoutParams;
            super(0);
        }

        public /* synthetic */ Object ˋ() {
            return ॱ();
        }

        @NotNull
        public final ThreeLineAppCard ॱ() {
            View inflate = LayoutInflater.from(this.ˎ.ॱ).inflate(h.ᐝᶥ, null);
            if (inflate == null) {
                throw new TypeCastException("null cannot be cast to non-null type android.widget.LinearLayout");
            }
            LinearLayout linearLayout = (LinearLayout) inflate;
            this.ˎ.ˊ(linearLayout);
            Context ˊ = this.ˎ.ॱ;
            fsd.ॱ(ˊ, "context");
            ThreeLineAppCard threeLineAppCard = new ThreeLineAppCard(ˊ);
            threeLineAppCard.ˏ((View) linearLayout);
            this.ˎ.ˊ(threeLineAppCard);
            this.ˏ.addView(linearLayout, this.ॱ);
            return threeLineAppCard;
        }
    }

    @org.jetbrains.annotations.Nullable
    public java.util.ArrayList<java.lang.String> z_() {
        /* JADX: method processing error */
/*
Error: jadx.core.utils.exceptions.DecodeException: Load method exception in method: com.huawei.appmarket.service.store.awk.node.ThreeLineAppNode.z_():java.util.ArrayList<java.lang.String>
	at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:116)
	at jadx.core.dex.nodes.ClassNode.load(ClassNode.java:249)
	at jadx.core.ProcessClass.process(ProcessClass.java:34)
	at jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:306)
	at jadx.api.JavaClass.decompile(JavaClass.java:62)
Caused by: java.lang.NullPointerException
*/
        /*
        r0 = this;
        r2 = new java.util.ArrayList;
        r2.<init>();
        r0 = r5.ˊ;
        if (r0 == 0) goto L_0x003c;
    L_0x0009:
        r0 = r0.ͺ();
        if (r0 == 0) goto L_0x003c;
    L_0x000f:
        r0 = (java.lang.Iterable) r0;
        r1 = new java.util.ArrayList;
        r1.<init>();
        r1 = (java.util.Collection) r1;
        r3 = r0.iterator();
        r0 = r3.hasNext();
        if (r0 == 0) goto L_0x0034;
    L_0x0022:
        r0 = r3.next();
        r4 = r0 instanceof java.lang.String;
        if (r4 != 0) goto L_0x002b;
        r0 = 0;
        r0 = (java.lang.String) r0;
        if (r0 == 0) goto L_0x0032;
        r1.add(r0);
        goto L_0x001c;
        r1 = (java.util.List) r1;
        r1 = (java.util.Collection) r1;
        r2.addAll(r1);
    L_0x003c:
        return r2;
        */
        throw new UnsupportedOperationException("Method not decompiled: com.huawei.appmarket.service.store.awk.node.ThreeLineAppNode.z_():java.util.ArrayList<java.lang.String>");
    }

    public ThreeLineAppNode(@NotNull Context context) {
        fsd.ˊ((Object) context, "context");
        super(context, 1);
    }

    public boolean ˊ(@NotNull ViewGroup viewGroup, @NotNull ViewGroup viewGroup2) {
        fsd.ˊ((Object) viewGroup, "rootLayout");
        fsd.ˊ((Object) viewGroup2, "parent");
        LayoutParams layoutParams = new LayoutParams(-1, -1);
        layoutParams.weight = 1.0f;
        this.ˊ = (ThreeLineAppCard) new c(this, viewGroup, layoutParams).ˋ();
        return true;
    }

    private final void ˊ(LinearLayout linearLayout) {
        azb.ˏ(linearLayout, j.ʿ);
    }

    public boolean ॱ(@NotNull chz o_chz, @NotNull ViewGroup viewGroup) {
        fsd.ˊ((Object) o_chz, "dataItem");
        fsd.ˊ((Object) viewGroup, "parent");
        ThreeLineAppCard threeLineAppCard = this.ˊ;
        if (threeLineAppCard != null) {
            threeLineAppCard.ˊ(o_chz, ͺ());
        }
        return super.ॱ(o_chz, viewGroup);
    }

    public void ˋ(@NotNull chy o_chy) {
        fsd.ˊ((Object) o_chy, "cardEventListener");
        ThreeLineAppCard threeLineAppCard = this.ˊ;
        if (threeLineAppCard != null) {
            threeLineAppCard.ˊ(o_chy);
        }
    }

    public boolean ॱ() {
        return true;
    }

    public boolean ʽ() {
        ThreeLineAppCard threeLineAppCard = this.ˊ;
        return threeLineAppCard != null ? threeLineAppCard.ॱˊ() : false;
    }
}
